package com.ruoyi.work.mapper;

import java.util.List;

import com.ruoyi.work.domain.BillReportVo;
import com.ruoyi.work.domain.WorkBill;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
 * 计件工作清单Mapper接口
 *
 * @author xwj
 * @date 2024-08-14
 */
@Mapper
public interface WorkBillMapper extends BaseMapper<WorkBill> {
    /**
     * 查询计件工作清单
     *
     * @param id 计件工作清单主键
     * @return 计件工作清单
     */
    public WorkBill selectWorkBillById(Long id);

    /**
     * 查询计件工作清单列表
     *
     * @param workBill 计件工作清单
     * @return 计件工作清单集合
     */
    public List<WorkBill> selectWorkBillList(WorkBill workBill);


    /**
     * 删除计件工作清单
     *
     * @param id 计件工作清单主键
     * @return 结果
     */
    public int deleteWorkBillById(Long id);

    /**
     * 批量删除计件工作清单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkBillByIds(Long[] ids);

    int deleteWorkBillStaffs(Long billId);

    List<BillReportVo> queryBillReport(BillReportVo billReportVo);
}
